package com.tianhui.consignortwofei.mvp.model.enty;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author fgs
 * @date 2021/5/22
 * @description
 **/
public class CarrierInfo implements Parcelable {
    public String areacode;
    public String businessscope;
    public String carrierab;
    public String carriercity;
    public String carriercounty;
    public String carrieremail;
    public String carriername;
    public String carrierno;
    public String carrierpassword;
    public String carrierprovince;
    public String carriertel;
    public String carriertype;
    public String carrieruername;
    public String carrieruernametype;
    public String carrieruscc;
    public String createBy;
    public String createTime;
    public String creditscore;
    public String id;
    public String idcard;
    public String idcardfphoto;
    public String idcardtphoto;
    public int isaudit;
    public String isauditdate;
    public String isblacklist;
    public String istatus;
    public String modifyBy;
    public String modifyTime;
    public String orderplacedetails;
    public String remarks;
    public String roadpermit;
    public String roadpermitimage;
    public String roleid;

    public ProfileInfo users;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.areacode);
        dest.writeString(this.businessscope);
        dest.writeString(this.carrierab);
        dest.writeString(this.carriercity);
        dest.writeString(this.carriercounty);
        dest.writeString(this.carrieremail);
        dest.writeString(this.carriername);
        dest.writeString(this.carrierno);
        dest.writeString(this.carrierpassword);
        dest.writeString(this.carrierprovince);
        dest.writeString(this.carriertel);
        dest.writeString(this.carriertype);
        dest.writeString(this.carrieruername);
        dest.writeString(this.carrieruernametype);
        dest.writeString(this.carrieruscc);
        dest.writeString(this.createBy);
        dest.writeString(this.createTime);
        dest.writeString(this.creditscore);
        dest.writeString(this.id);
        dest.writeString(this.idcard);
        dest.writeString(this.idcardfphoto);
        dest.writeString(this.idcardtphoto);
        dest.writeInt(this.isaudit);
        dest.writeString(this.isauditdate);
        dest.writeString(this.isblacklist);
        dest.writeString(this.istatus);
        dest.writeString(this.modifyBy);
        dest.writeString(this.modifyTime);
        dest.writeString(this.orderplacedetails);
        dest.writeString(this.remarks);
        dest.writeString(this.roadpermit);
        dest.writeString(this.roadpermitimage);
        dest.writeString(this.roleid);
        dest.writeParcelable(this.users, flags);
    }

    public CarrierInfo() {
    }

    protected CarrierInfo(Parcel in) {
        this.areacode = in.readString();
        this.businessscope = in.readString();
        this.carrierab = in.readString();
        this.carriercity = in.readString();
        this.carriercounty = in.readString();
        this.carrieremail = in.readString();
        this.carriername = in.readString();
        this.carrierno = in.readString();
        this.carrierpassword = in.readString();
        this.carrierprovince = in.readString();
        this.carriertel = in.readString();
        this.carriertype = in.readString();
        this.carrieruername = in.readString();
        this.carrieruernametype = in.readString();
        this.carrieruscc = in.readString();
        this.createBy = in.readString();
        this.createTime = in.readString();
        this.creditscore = in.readString();
        this.id = in.readString();
        this.idcard = in.readString();
        this.idcardfphoto = in.readString();
        this.idcardtphoto = in.readString();
        this.isaudit = in.readInt();
        this.isauditdate = in.readString();
        this.isblacklist = in.readString();
        this.istatus = in.readString();
        this.modifyBy = in.readString();
        this.modifyTime = in.readString();
        this.orderplacedetails = in.readString();
        this.remarks = in.readString();
        this.roadpermit = in.readString();
        this.roadpermitimage = in.readString();
        this.roleid = in.readString();
        this.users = in.readParcelable(ProfileInfo.class.getClassLoader());
    }

    public static final Parcelable.Creator<CarrierInfo> CREATOR = new Parcelable.Creator<CarrierInfo>() {
        @Override
        public CarrierInfo createFromParcel(Parcel source) {
            return new CarrierInfo(source);
        }

        @Override
        public CarrierInfo[] newArray(int size) {
            return new CarrierInfo[size];
        }
    };
}
